<?php require "init.php"?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <link rel="icon" href="./public/home/imgs/logo.jpg">
    <title>小米手机专卖店(ximiao)</title>

    <!-- Bootstrap -->
    <link href="./public/home/css/bootstrap.min.css" rel="stylesheet">
    <link href="./public/home/css/index.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="./public/home/js/html5shiv.min.js"></script>
    <script src="./public/home/js/respond.min.js"></script>
    <![endif]-->
</head>
<body>
    <!--引入导航条-->
    <?php require "./com/nav.php" ?>
    <?php if(empty($_SESSION['step'])):?>
        <?php $_SESSION['step'] = "第一步";?>
    <?php endif;?>
    <h1 class="text-center">&nbsp;</h1>
    <h1 class="text-center"><?php echo $_SESSION['step'];?></h1>
    <hr>

    <div class="container mt40">
        <div class="row">
            <form class="form-horizontal col-md-6 col-md-offset-2" action="./com/getdo.php"
                  method="post">
                <?php if(empty($_SESSION['updatepwd'])):?>
                <div class="form-group">
                    <label for="tel" class="col-sm-4 control-label">
                        手机号:</label>
                    <div class="col-sm-8">
                        <input type="text" class="form-control"
                               name='tel' placeholder="请输入注册用的11位手机号">
                    </div>
                </div>
                <div class="form-group">
                    <label for="code" class="col-sm-4 control-label">验证码:</label>
                    <div class="col-sm-4">
                        <input type="text" class="form-control"
                               name="telcode" placeholder="请输入手机验证码">
                    </div>
                    <div class="col-sm-4 ">
                        <button class="btn">获取验证码</button>
                    </div>
                </div>
                <?php else:?>
                    <div class="form-group">
                        <label for="tel" class="col-sm-4 control-label">
                            密码:</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control"
                                   name='password' placeholder="请输入密码">
                        </div>
                    </div>
                    <div class="form-group">
                        <label for="code" class="col-sm-4 control-label">再次输入密码:</label>
                        <div class="col-sm-8">
                            <input type="text" class="form-control"
                                   name="repassword" placeholder="请再次输入密码">
                        </div>
                    </div>
                <?php endif;?>
                <div class="form-group">
                    <div class="col-md-6 col-md-offset-4">
                        <button type="submit" class="btn btn-primary btn-lg btn-block">
                            提交</button>
                    </div>
                </div>
            </form>
        </div>

    </div>



    <!--引入底部开始-->
    <?php require "./com/footer.php" ?>


    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="./public/home/js/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="./public/home/js/bootstrap.min.js"></script>
</body>
</html>

